package com.example.bmanliku;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

public class DetailActivity extends AppCompatActivity {
    private TextView Detail;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_detail);
        Detail=findViewById(R.id.Detail);
        Bundle bundle = getIntent().getExtras();
        String detail = bundle.getString("detail");
        //将这个符号替换成回车
        String display = detail.replace("\\n", "\n");
        Detail.setText(display);
    }
}